# coding: utf-8
import datetime

from .base import db


class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(40), unique=True)

    # 创建信息时间 默认是当时时间
    create_time = db.Column(db.DateTime,  nullable=False, default = datetime.datetime)
